package com.suning.sawp.service.util;

import java.io.IOException;
import java.io.InputStream;

public abstract class AbstractReaderFile  {
	
    protected int current = 0;

    protected String currentLine = null;

    protected InputStream inputStream = null;

    protected boolean hasRead = false;

    protected int rows = 0;
    
    protected int column = -1;

    public int getCurrentLineNumber() {
        return this.current;
    }

    public abstract boolean hasNext() throws IOException;

    public abstract Object next();

    public void close() throws IOException {
        if (this.inputStream == null)
            return;
        this.inputStream.close();
    }
}
